package com.example.management.system.dao;

import com.example.management.common.domain.UserCompanyDO;
import com.example.management.common.utils.MyMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 * @author zhangtai
 * @date 2019-02-11 14:07:26
 */
@Mapper
public interface UserCompanyDao extends MyMapper<UserCompanyDO> {

    UserCompanyDO get(Long companyId);

    List<UserCompanyDO> list(Map<String,Object> map);

    int count(Map<String,Object> map);

    int save(UserCompanyDO userCompany);

    int update(UserCompanyDO userCompany);

    int remove(Long company_id);

    int batchRemove(Long[] companyIds);
}